package com.mowh.multithreading.balking.host;

import java.util.concurrent.TimeoutException;

/**
 * @author mowh1gd
 * @create 2023/11/15 14:35
 */
public class Main {
    public static void main(String[] args) {
        Host host = new Host(10000);
        try {
            System.out.println("execute BEGIN");
            host.execute();
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        } catch (TimeoutException e) {
            throw new RuntimeException(e);
        }
    }
}
